package com.yxx.community.exception;

/**
 * @Author: YuXinXin
 * @Description:
 * @Date:Created in 16:22 2020/2/5
 **/
public enum CustomizeErrorCode implements ICustomizeErrorCode {

  QUESTION_NOT_FIND(2001,"你找的问题不见了，要不要换一个试试？"),
  TARGET_TYPE_NOT_FIND(2002,"未选中任何评论或者问题进行回复"),
  NO_LOGIN(2003,"当前操作需要登录，请登陆后重试！"),
  SYS_ERROR(2004,"服务太热了，请稍后重试"),
  TARGET_TYPE_WRONG(2005,"评论类型错误或者不存在"),
  COMMENT_NOT_FIND(2006,"回复的评论不存在，要不要换一个试试？"),
  COMMENT_IS_EMPTY(2007,"输入内容不能为空"),
  NOTIFICATION_NOT_FIND(2008,"通知不见了");


  private String message;
  private Integer code;

  @Override
  public String getMessage() {
    return message;
  }

  @Override
  public Integer getCode() {
    return code;
  }

  CustomizeErrorCode( Integer code,String message) {
    this.message = message;
    this.code = code;
  }


}
